<?php 


include '../function.php';
include './Model.class.php';


// $sql = "select * from stu";

// $sql1 = "update stu set name='压力' where id='36'";

// $result = M()->queryRow($sql);
// $result = M()->queryAll($sql);
// $result = M()->exec($sql1);

// var_dump($result);


// $arr = array(
// 	"name"=>"小小",
// 	"qq"=>'3423432',
// 	"phone"=>'18925139194'
// 	);

// M('stu')->add($arr);

// $sql = "select name,id from stu where sex='男' order by age desc";

// $result = M()->queryAll($sql);


// var_dump($result);






$result = M('stu')->where("id='11'")->orderBy('age desc')->limit('1')->queryAll();


var_dump($result);










 ?>